package com.js.mail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.js.common.utils.PageUtils;
import com.js.mail.product.entity.AttrGroupEntity;
import com.js.mail.product.vo.AttrGroupWithAttrsVo;
import com.js.mail.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author js
 * @email 1981725869@qq.com
 * @date 2021-06-10 23:28:37
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页查询
     *
     * @param params
     * @param catelogId
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 查出当前分类下的所有属性分组
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);

}

